package com.liuning.graduationdemo.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liuning.graduationdemo.entity.Doctor;
import com.liuning.graduationdemo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pumpkin
 * @since 2022-04-07
 */
public interface UserMapper extends BaseMapper<User> {

    Page<User> findPage(Page<User> page, @Param("username") String username, @Param("nickname") String nickname, @Param("address") String address,@Param("roleType") String roleType);

    Page<User> findDoctorPage(Page<User> page, @Param("nickname") String nickname, @Param("deptId") Integer deptId,@Param("roleType") String roleType);

    Page<User> findPatientPage(Page<User> page, @Param("nickname") String nickname,@Param("roleType") String roleType);
}
